import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/company',
    name: 'company',
    component: () => import('../views/Company.vue')
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('../views/News.vue')
  },
  {
    path: '/video',
    name: 'video',
    component: () => import('../views/Video.vue')
  },
  {
    path: '/project',
    name: 'project',
    component: () => import('../views/Project.vue')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/About.vue')
  },
  {
    path: '/news-details',
    name: 'newsDetails',
    component: () => import('../views/newsDetails/index')
  }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
